package com.webbei.test;

import org.apache.ibatis.session.SqlSession;

import com.webbei.pojo.Carseries;
import com.webbei.pojo.Customer;

public class test {

	private SqlSession session;
	private String username;
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setSession(SqlSession session) {
		this.session = session;
	}

	public String execute(){
		
		Carseries c = (Carseries) session.selectOne("Carseries.getCarseries", 1);
		username = c.getSeriesName();
		
		return "success";
	}
	
}
